package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_train_type_config")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TrainTypeConfigModel {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer trainId;//培训学校ID
    private Integer type;//培训分类

    @TableField(exist = false)
    private String typeText;//培训分类
    @TableField(exist = false)
    private List<TrainTypeConfigSonModel> sonList;




}
